﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PandemiaAdminNet.Conexiones;
using PandemiaAdminNet.Config;

namespace PandemiaAdminNet
{
    public partial class FrmPrincipal : Form
    {
        public FrmPrincipal()
        {
            InitializeComponent();
        }

        #region Menú Opciones

        private void Lanzar(Form frm)
        {
            frm.MdiParent = this;
            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.Show();
        }

        private void btnServidores_Click(object sender, EventArgs e)
        {
            Lanzar(new FrmServidores());
        }

        private void btnNodos_Click(object sender, EventArgs e)
        {
            Lanzar(new FrmNodos());
        }

        private void btnConfiguracionServidor_Click(object sender, EventArgs e)
        {
            Lanzar(new FrmConfiguracionServidor());
        }

        private void btnCreacionDeClientes_Click(object sender, EventArgs e)
        {
            Lanzar(new FrmCreacionDeClientes());
        }

        #endregion
    }
}
